package com.yibuBoot;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import java.util.concurrent.ExecutorService;

/**
 * 作者: LCG
 * 日期: 2020/3/8 18:40
 * 描述:
 */

@Component
public class TestYiBuService {

    @Async("executorService")
    public void testyiBu(){
        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("==================");
    }

}
